package com.qys.livesMall.app.user.mapper;

import com.qys.livesMall.app.user.model.entity.UserStatisticsTeam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * 团队统计数据 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2023-08-02
 */
public interface UserStatisticsTeamMapper extends BaseMapper<UserStatisticsTeam> {

    UserStatisticsTeam getbyUserid(@Param("type") Integer type, @Param("userId") Long userId);

    Integer queryAddPeopleNum(@Param("id") Long id,@Param("day") int day);

    BigDecimal getWithdrawalAmount(@Param("id") Long id);

    BigDecimal getInitiateWithdrawalAmount(Long id);

    Integer deleteBYteamId(String id);
}
